#include "micinfo.h"
#include "remotedef.h"
#include <QVariant>

MicInfo::MicInfo()
    :BaseResp()
{
    enable = MIC_STATUS_MAX;
}

void MicInfo::unserialize(QString json)
{
    BaseResp::unserialize(json);
    if (m_json.isValid())
    {
        enable = (int)m_json.value(KEY_MIC_STATUS).toDouble();
    }
}

int MicInfo::getEnable() const
{
    return enable;
}

void MicInfo::setEnable(int value)
{
    enable = value;
}

